package ar.com.quickMart.logic;

import java.io.Serializable;

public class Product extends Purchasable {
	

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6428237619696736758L;
	
	private long code;
	private String description;
	private int count;
	private Float price;
	
	public long getCode() {
		return code;
	}
	public void setCode(long barCode) {
		this.code = barCode;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	
	@Override
	public int compareTo(Purchasable p){
		
		return this.getDescription().compareTo(p.getDescription());
	}

	
}
